package com.ds;

import javax.swing.*;
import javax.swing.event.ListDataListener;

/**
 * Created by IntelliJ IDEA.
 * User: daniel
 * Date: 01/11/2009
 * Time: 15:11:15
 * To change this template use File | Settings | File Templates.
 */
public class ShowsListModel implements ListModel {

    private Shows shows;

    public ShowsListModel(Shows shows) {
        this.shows = shows;
    }

    public int getSize() {
//        if(shows != null)
//            return shows.size();
//        else
            return 0;
    }

    public Object getElementAt(int index) {
//        return shows.get(index);
        return null;
    }

    public void addListDataListener(ListDataListener l) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public void removeListDataListener(ListDataListener l) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

}
